<?php 
@session_start();
include_once '../controllers/loginController.php';
secure('ROL_ADMIN');?>
<head>
	<?php include 'json.php';?>
	<script type="text/javascript" src="/js/tabs.js"></script>
	<link rel="stylesheet" type="text/css" href="/css/tabs.css"></link>

	<script type="text/javascript" src="/js/admin.js"></script>
	<script type="text/javascript">
        	step = <?php echo empty($_POST['section'])?1:$_POST['section']?>;
	</script>
	
</head>

 <?php  	$step = empty($_POST['section'])?1:$_POST['section'];
        ?>
        
         <form id="form_tab" action="/admin" method="post">
					<input id="step" name="section" type="hidden"/>
			</form>

<div class="bar">
	<span class="button-class" id="logout">Salir</span>
</div>
        
<div id="botonera">
<ul class="tabs">
    <li class="rounded"><a href="1">Cartilla</a></li>
    <li class="rounded"><a href="2">localidad</a></li>
    <li class="rounded"><a href="3">Zona</a></li>
    <li class="rounded"><a href="4">Prestador</a></li>
    <li class="rounded"><a href="5">Especialidad</a></li>
    <li class="rounded"><a href="6">Plan</a></li>
    
</ul>

<div class="tab_container">
					<?php switch ($step){
	                		case '1':	{include("abm_cartilla.php"); break; }
	                		case '2':   {include("localidad.php"); break;}
	                		case '3':   {include("zona.php"); break;}
	                		case '4':   {include("prestador.php"); break;}
	                		case '5':   {include("especialidad.php"); break;}
	                		case '6':   {include("plan.php"); break;}
	                	}
					?>
				</div>
</div>